package demo3;

public class Bird extends Animal implements Irun,Ifiy{
    public Bird(String name){
        this.name = name;
    }
    public void run(){
        System.out.println(this.name+"会跑步");
    }
    public void fly(){
        System.out.println(this.name+"会飞");
    }
    public void eat(){
        System.out.println(this.name+"在吃饭");
    }
}
